﻿<phone:PhoneApplicationPage x:Class="Liuyi.Phone.LiveMSN.MainPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:local="clr-namespace:Liuyi.Phone.LiveMSN"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            d:DesignHeight="696"
                            d:DesignWidth="480"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            Orientation="Portrait"
                            shell:SystemTray.BackgroundColor="{StaticResource PhoneAccentColor}"
                            shell:SystemTray.IsVisible="True"
                            SupportedOrientations="Portrait"
                            mc:Ignorable="d">

    <!--  LayoutRoot is the root grid where all page content is placed  -->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--  TitlePanel contains the name of the application and page title  -->

        <!--  ContentPanel - place additional content here  -->
        <Grid x:Name="ContentPanel">
            <phone:WebBrowser x:Name="___WebBrowser_msn"
                              IsGeolocationEnabled="True"
                              IsScriptEnabled="True"
                              LoadCompleted="___WebBrowser_msn_LoadCompleted"
                              Navigated="___WebBrowser_msn_Navigated"
                              Navigating="___WebBrowser_msn_Navigating"
                              NavigationFailed="___WebBrowser_msn_NavigationFailed"
                              ScriptNotify="___WebBrowser_msn_ScriptNotify" />
        </Grid>
    </Grid>

    <!--  Sample code showing usage of ApplicationBar  -->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar BackgroundColor="{StaticResource PhoneAccentColor}"
                              IsMenuEnabled="True"
                              IsVisible="True"
                              Mode="Minimized">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="___ApplicationBarMenuItem_help"
                                              Click="___ApplicationBarMenuItem_help_Click"
                                              Text="Help" />
                <shell:ApplicationBarMenuItem x:Name="___ApplicationBarMenuItem_about"
                                              Click="___ApplicationBarMenuItem_about_Click"
                                              Text="About" />
                <shell:ApplicationBarMenuItem x:Name="___ApplicationBarMenuItem_exit"
                                              Click="___ApplicationBarMenuItem_exit_Click"
                                              IsEnabled="True"
                                              Text="退出" />
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>